package test4;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2023-11-24
 * Time: 21:44
 */
public class test {
    public static void main(String[] args) {
        String reverser = reverser("abcd");
        System.out.println(reverser);
    }

    public static String reverser(String str) {
        String result = "";
        for (int i = str.length() - 1; i >= 0; i--) {
            char c = str.charAt(i);
            result += c;
        }
        return result;

    }
}
